package com.chzc.fm.duotin.bean;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/6/24.
 */
public class AnchorSpecial {


    /**
     * id : 7757
     * title : 脱口秀
     * subhead :
     * href : duotin://forward/album/tag/1619
     * type : 27
     * subValues : []
     * image_url : http://c3.duotin.com/i1/DT/uvXs9OO0-lTmbkY_CmzVqx9Q4KAGh70o79nITaXtW_U.jpg
     * item_value : 1619
     * sub_title : 脱口秀
     * is_advertisement : 0
     */

    private int id;
    private String title;
    private String subhead;
    private String href;
    private int type;
    private String image_url;
    private String item_value;
    private String sub_title;
    private int is_advertisement;
    private List<?> subValues;



    /**
     * describe : 周志忠：资深原油分析师，对原油单独深入研究。从事原油分析师7年，清晰把握市场动向，其独特的投资观在股票、原油中游走自如，善用技术综合分析，熟悉国内外金融市场。微信号：ygytx01，QQ群：379366534
     * tags : []
     * play_num : 479900
     */

    private String describe;
    private int play_num;
    private List<AnchorSpecialItem> tags;
    private String ids;


    public static AnchorSpecial objectFromData(String str) {

        return new Gson().fromJson(str, AnchorSpecial.class);
    }

    public static List<AnchorSpecial> arrayAnchorSpecialFromData(String str) {

        Type listType = new TypeToken<ArrayList<AnchorSpecial>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubhead() {
        return subhead;
    }

    public void setSubhead(String subhead) {
        this.subhead = subhead;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getItem_value() {
        return item_value;
    }

    public void setItem_value(String item_value) {
        this.item_value = item_value;
    }

    public String getSub_title() {
        return sub_title;
    }

    public void setSub_title(String sub_title) {
        this.sub_title = sub_title;
    }

    public int getIs_advertisement() {
        return is_advertisement;
    }

    public void setIs_advertisement(int is_advertisement) {
        this.is_advertisement = is_advertisement;
    }

    public List<?> getSubValues() {
        return subValues;
    }

    public void setSubValues(List<?> subValues) {
        this.subValues = subValues;
    }


    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }



    public int getPlay_num() {
        return play_num;
    }

    public void setPlay_num(int play_num) {
        this.play_num = play_num;
    }

    public List<AnchorSpecialItem> getTags() {
        return tags;
    }

    public void setTags(List<AnchorSpecialItem> tags) {
        this.tags = tags;
    }


    public String getIds() {
        return ids;
    }
}
